﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddEdit.aspx.cs" Inherits="CardLogistics.Web.MainPage.CardMaking.CardOutStorage.AddEdit" %>

<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>白卡出库_新增编辑</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/selPage.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/jquery.multiselect.css" rel="stylesheet" />
    <script src="../../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script src="../../../js/jquery.tipswindow.2.0.js" type="text/javascript"></script>
    <script src="../../../js/CheckBoxSelect/option_check.js" type="text/javascript"></script>
    <style type="text/css">
        .hover {
            background-color: Blue;
            color: White;
            cursor: hand;
        }
        .auto-style1 {
            text-align: right; /*background:#f4f4f4;*/;
            width: 15%;
            padding-right: 10px;
            height: 46px;
        }
        .auto-style2 {
            width: 35%;
            height: 46px;
        }
    </style>

    <script type="text/javascript" language="javascript">
        function valReq(issubmit) {
            //非空校验
            var altStr = valid_isempty('OUTSTORAGENO', '出库单号');
            altStr += valid_isempty('DemandNO', '卡片需求单编号');
            altStr += valid_isempty('OUTSTORAGEDATE', '出库日期');
            altStr += valid_isempty('ddlSUPPID', '供应商');
            //非数字或字母校验
            altStr += valid_isnoCh('OUTSTORAGENO', '出库单号');
            altStr += valid_isnoCh('DemandNO', '卡片需求单编号');
            altStr += GetCardInfo();
            altStr += valid_isempty('hf_CheckId', '出库明细');
            if (altStr != "") {
                alert(altStr);
                return false;
            }
            if (reqNum() == "err")
                return false;
            else {
                if (issubmit == 1) {
                    if (confirm("提交后该信息进入待审批状态不可编辑,确认提交吗?") == true) {
                        return true;
                    }
                    else
                        return false;
                }
                else
                    return true;
            }
        }
        function reqNum() {
            var dnum = parseInt($("#hf_DemSum").val()); //卡片需求总数
            var cnum = parseInt($("#hf_DemCkSum").val()); //已出库数量
            var ednum = parseInt($("#hfEditSumCard").val()); //编辑时总数
            var bcnum = GetSumByName("ActualNumber"); //本次出库数量
            var ynum = dnum - cnum + ednum; //本次可出库数量=需求总数-已出库+编辑的数量
            if (bcnum == 0) {
                alert("出库数量不可为0,请填写出库明细!");
                return "err";
            }
            if (bcnum <= ynum) {
                return "";
            }
            else {
                alert("当前出库数量" + bcnum + "不可大于" + ynum + ",请核对!");
                return "err";
            }
        }
    </script>
    <script type="text/javascript">
        $(document).ready(function () {

            $("#DemandNO").click(function () {//选择卡片需求单
                $.tipsWindow({
                    ___title: "选择卡片需求单",
                    ___content: "iframe:../../SelectPage/CardDemand.aspx",
                    ___width: "1000",
                    ___height: "500",
                    ___drag: "___boxTitle",
                    ___showbg: true
                });
            });

            $("#SeparateNo").click(function () {//选择卡离合单号
                $.tipsWindow({
                    ___title: "选择卡离合单号",
                    ___content: "iframe:../../SelectPage/SelSeparate.aspx",
                    ___width: "1000",
                    ___height: "500",
                    ___drag: "___boxTitle",
                    ___showbg: true
                });
            });
        }

        )
    </script>
    <script type="text/javascript" language="javascript">
        //获取明细详情内容
        function GetCardInfo() {
            var Data_value = [];
            var errInfo = ""; //返回错误消息
            var vIndex = 0;
            var BoxNo = $("input[name=BoxNo]");
            var CardNo = $("select[name=CardNo]");
            var StartNo = $("input[name=StartNo]");
            var EndNo = $("input[name=EndNo]");
            var DueNumbers = $("input[name=DueNumbers]");
            var ActualNumber = $("input[name=ActualNumber]");
            var MissingCardNo = $("input[name=MissingCardNo]");
            $("select[name=CardNo] option:selected").each(function (i, o) {
                if ($(StartNo[i]).val() != "0" && $(StartNo[i]).val() != "") {
                    Data_value[vIndex] = "'" + Trim($(BoxNo[i]).val()) + "'|'" + Trim($(o).text()) + "'|'" + Trim($(StartNo[i]).val())
                    + "'|'" + Trim($(EndNo[i]).val()) + "'|" + Trim($(DueNumbers[i]).val()) + "|" + Trim($(ActualNumber[i]).val()) + "|" + "'" + Trim($(MissingCardNo[i]).val()) + "'"; //字段值
                    vIndex++;
                    if ($(ActualNumber[i]).val() == "0" || $(ActualNumber[i]).val() == "")
                        errInfo += "第" + vIndex + "行明细不能为空\n";
                }
            });
            $("#hf_CheckId").val(Data_value.join(";"));
            document.getElementById("DueSum").innerHTML = GetSumByName("DueNumbers");
            document.getElementById("ActualSum").innerHTML = GetSumByName("ActualNumber");
            //实际数量赋值给隐藏值，便于后台判断是否大于需求单数量
            return errInfo;
        }
        //根据盒号获取入库详情信息  
        function selCardNoInfo(obj) {
            var stxt = obj.options[obj.options.selectedIndex].text; //格式：入库ID,盒号
            var txtTmp = "";
            var snum = 0;
            $("select[name=CardNo] option:selected").each(function (i, o) {//所有选中的盒号集合
                if (Trim($(o).text()) != "") {
                    txtTmp += (Trim($(o).text())) + "|";
                    if ((Trim($(o).text())) == stxt)
                        snum++;
                }
            });
            if (snum > 1) {
                alert("盒号不可重复选择！");
                obj.value = "";
            }
            var temp = obj.options[obj.options.selectedIndex].value; //格式：开始卡号|截止卡号|箱号|入库Id
            var tr = obj.parentNode.parentNode; //当前行
            if (temp.split('|').length == 4 && snum <= 1) {
                $(tr.cells[3]).find("input").val(Pad(temp.split('|')[0], 8));
                $(tr.cells[4]).find("input").val(Pad(temp.split('|')[1], 8));
                $(tr.cells[1]).find("input").val(temp.split('|')[2]);
                document.getElementById("rkId").value = temp.split('|')[3];//入库Id
                $(tr.cells[4]).find("input").keyup();
                return;
            }
            $(tr.cells[3]).find("input").val("");
            $(tr.cells[4]).find("input").val("");
            $(tr.cells[1]).find("input").val("");

            $(tr.cells[4]).find("input").keyup();
        }

        //根据盒号获取入库详情信息  
        function selBoxInfo(obj) {
            var stxt = obj.options[obj.options.selectedIndex].text; //箱号
            var temp = obj.options[obj.options.selectedIndex].value.split('|'); //格式：盒1|盒2|盒3|盒4....
            var CardNo = $("select[name=CardNo]");
            var m = 0;
            for (var i = 0; i < CardNo.length; i++) {
                m = i;
                for (m; m < temp.length; m++) {
                    for (var n = 0; n < CardNo[i].options.length; n++) {
                        if (CardNo[i][n].text == temp[m]) {
                            (CardNo[i]).options.selectedIndex = n;
                            selCardNoInfo(CardNo[i]);
                            break;
                        }
                    }
                    break;
                }
            }
        }

    </script>
    <script type="text/javascript">
        $(document).ready(function () {
            // 根据截止卡号获取信息
            $("input[name='EndNo']").keyup(function () {
                var endNO = this.value; //当前值-EndNO
                var tr = this.parentNode.parentNode; //当前行
                if (Trim(endNO).length == 8) {
                    var startNO = $(tr.cells[3]).find("input").val(); //StartNO
                    var maxEndNO = parseInt($(tr.cells[2]).find("select").val().split('|')[1]); //当前盒截止卡号
                    if (parseInt(endNO) > maxEndNO || parseInt(endNO) < parseInt(startNO)) {
                        alert("当前盒号的有效卡号" + startNO + "-" + maxEndNO + "，请重新输入！");
                    }
                    else {

                        var rkId = document.getElementById("rkId").value;
                        var cInfo = GetInfoByDB(startNO, endNO, rkId);
                        if (cInfo.split('|').length == 3) {
                            $(tr.cells[5]).find("input").val(cInfo.split('|')[0]);
                            $(tr.cells[6]).find("input").val(cInfo.split('|')[1]);
                            $(tr.cells[7]).find("input").val(cInfo.split('|')[2]);
                            GetSumInfo();
                            return;
                        }
                    }
                }
                $(tr.cells[5]).find("input").val(0);
                $(tr.cells[6]).find("input").val(0);
                $(tr.cells[7]).find("input").val("");
                GetSumInfo();
            });
            // 根据截止卡号获取信息
        });

        function GetSumInfo() {
            document.getElementById("DueSum").innerHTML = GetSumByName("DueNumbers");
            document.getElementById("ActualSum").innerHTML = GetSumByName("ActualNumber");
        }

        function BindDetailInfo() {
            var DueNum = 0; //应有数量
            var ActualNum = 0; //实际数量
            var BoxNo = $("input[name=BoxNo]");
            var CardNo = $("select[name=CardNo]");
            var StartNo = $("input[name=StartNo]");
            var EndNo = $("input[name=EndNo]");
            var DueNumbers = $("input[name=DueNumbers]");
            var ActualNumber = $("input[name=ActualNumber]");
            var MissingCardNo = $("input[name=MissingCardNo]");
            var ids = document.getElementById("hf_CheckId").value;
            var str1 = ids.split(";");
            for (var i = 0; i < str1.length; i++) {
                if (str1[i] != "") {
                    $(BoxNo[i]).val(str1[i].split("|")[0].replace("'", "").replace("'", ""));
                    $(CardNo[i]).val(str1[i].split("|")[1].replace("'", "").replace("'", ""));
                    $(StartNo[i]).val(Pad(str1[i].split("|")[2].replace("'", "").replace("'", ""), 8));
                    $(EndNo[i]).val(Pad(str1[i].split("|")[3].replace("'", "").replace("'", ""), 8));
                    $(DueNumbers[i]).val(str1[i].split("|")[4]);
                    $(ActualNumber[i]).val(str1[i].split("|")[5]);
                    $(MissingCardNo[i]).val(str1[i].split("|")[6].replace("'", "").replace("'", ""));
                }
            }
            //实际数量赋值给隐藏值，便于后台判断是否大于需求单数量
            GetSumInfo();
            //编辑时获取入库Id
            var rkId = document.getElementById("rkId").value;
        }
        window.onload = function () {
            SetInputRedonley("BoxNo|text-align:center,StartNo,DueNumbers,ActualNumber,MissingCardNo"); //设置文本框只读属性
            BindDetailInfo();
        }

    </script>
    <script type="text/javascript">
        $(function () {
            Jselect($("#txt_wbk"), {
                bindid: 'txt_wbk', //可绑定到按钮上，此处为点击文本框显示下拉框
                hoverclass: 'hover',
                optionsbind: function () { return hqhtml(); }
            });
        })
        var boxStr=<%=BoxNOList %>;
        //var option = new Array('第一项', '第二项', '第三项', '第四项', '第五项', '第六项');
        var option=boxStr.split(',');
        Array.prototype.del = function (n) {  //n表示第几项，从0开始算起。
            //prototype为对象原型，注意这里为对象增加自定义方法的方法。
            if (n < 0)  //如果n<0，则不进行任何操作。
                return this;
            else
                return this.slice(0, n).concat(this.slice(n + 1, this.length));
        }
        function hqhtml() {//此处可在数据库中取值后拼接html，注意：预选项加上 lang='checked'属性
            var optionshtml = "<table style='width:100%;line-height:20px; background-color: #fff; border:0px solid #000;' cellpadding=\"0\" cellspacing=\"0\" >";
            for (var i = 0; i < option.length; i++) {
                optionshtml += "<tr><td style='width:20px;padding-left:3px; boder:0px;'><input type=\"checkbox\" value='" + i + "' /></td><td style=' boder:0px;'>" + option[i] + "</td></tr>"
            }
            optionshtml += "</table>";
            return optionshtml;
        }
        function wbkClk()
        {
            var wbkStr=$("#txt_wbk").val().split(',');
            var selKyes="";
            for (var i = 0; i < wbkStr.length; i++) {
            <%foreach (var box in CardNOList_D)
        {%>
                if(wbkStr[i]==<%="'"+box.Value.ToString()+"'"%>)
                {
                  selKyes+=<%="'"+box.Key.ToString()+"|'"%>;
                }
        <%}%>
        }
        // alert(selKyes);
        var allBoxNO=selKyes.split('|');
        var CardNo = $("select[name=CardNo]");
        var m = 0;
        for (var i = 0; i < CardNo.length; i++) {
            m = i;
            for (m; m < allBoxNO.length; m++) {
                for (var n = 0; n < CardNo[i].options.length; n++) {
                    if (CardNo[i][n].text == allBoxNO[m]) {
                        (CardNo[i]).options.selectedIndex = n;
                        selCardNoInfo(CardNo[i]);
                        break;
                    }
                }
                break;
            }
        }
        }
    </script>
</head>
<body>
    <form id="frmStorageCheck" runat="server">
        <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
        <%=GetStatusInfo(0, "白卡出库")%>
        <asp:HiddenField ID="hf_CheckId" runat="server" />
        <table class="theForm" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td class="titleTxt">出库单号：
                </td>
                <td class="contentTxt">
                    <input id="OUTSTORAGENO" runat="server" type="text" class="dfinputNoEmp" maxlength="15" />
                </td>
                <td class="titleTxt">卡片需求单编号：
                </td>
                <td class="contentTxt">
                    <input id="DemandNO" runat="server" type="text" class="dfinputImg"
                        maxlength="25" />
                    <asp:HiddenField ID="hf_DemandId" runat="server" />
                    <asp:Button ID="btn_DemandId" runat="server" OnClick="btn_DemandId_ValueChanged" />
                    <!--需求明细Id-->
                    <asp:HiddenField ID="hf_DemSum" Value="0" runat="server" />
                    <!--需求总数-->
                    <asp:HiddenField ID="hf_DemCkSum" Value="0" runat="server" />
                    <!--已出库数量-->
                    <input type="hidden" id="hfEditSumCard" value="0" runat="server" /><!--编辑时的数量-->
                    <!--入库Id-->
                    <asp:HiddenField ID="rkId" runat="server" />
                    <asp:HiddenField ID="hf_CardType" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="auto-style1">出库日期：
                </td>
                <td class="auto-style2">
                    <input id="OUTSTORAGEDATE" runat="server" type="text" class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                </td>
                <td class="auto-style1">库管员：
                </td>
                <td class="auto-style2">
                    <input id="STOCKCONTROLLER" runat="server" type="text" class="dfinput" maxlength="25" />
                </td>
            </tr>
            <tr>
                <td class="titleTxt">供应商：
                </td>
                <td class="contentTxtM">
                    <asp:DropDownList ID="ddlSUPPID" runat="server" CssClass="dfinputNoEmp" AutoPostBack="true"
                        OnSelectedIndexChanged="ddlSUPPID_selectChange">
                    </asp:DropDownList>
                </td>
                <td class="titleTxt">箱号：</td>
                <td class="contentTxtM">
                    <input id="txt_wbk" type="text" class="dfinput" readonly="readonly" onclick="wbkClk();" />
                    <%--<select name="example-basic" title="Basic example" multiple="multiple" style="width: 50px;" size="5"  onchange="selBoxInfo(this)">
                        <option value="0"></option>
                       <%foreach (var box in BoxNOList)
                            {%>
                        <option value="<%=box.Key %>">
                            <%=box.Value%></option>
                        <% }%>
                    </select>--%></td>
            </tr>
            <tr>
                <td class="titleTxt">备注：
                </td>
                <td class="contentTxt" colspan="3">
                    <input id="REMARKS" runat="server" type="text" class="dfinput" maxlength="200" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <div class="ddetail" style="height: 320px;">
                        <table class="tabledetail" id="tb_Detail">
                            <thead>
                                <tr>
                                    <th style="width: 30px;">序号
                                    </th>
                                    <th style="width: 150px;">箱号
                                    </th>
                                    <th style="width: 150px;">盒号
                                    </th>
                                    <th style="width: 150px;">起始卡号
                                    </th>
                                    <th style="width: 150px;">结束卡号
                                    </th>
                                    <th style="width: 150px;">应有数量/张
                                    </th>
                                    <th style="width: 150px;">实际数量/张
                                    </th>
                                    <th>缺卡卡号
                                    </th>
                                    <th>&nbsp;
                                    </th>
                                </tr>
                            </thead>
                            <tbody id="tablebody">
                                <tr>
                                    <td align="center">1
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <%--<input name="CardNo" type="text" class="dfinput" onkeydown="onlyNumCode();"  maxlength="11"/>--%>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">2
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">3
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">4
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">5
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">6
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">7
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">8
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">9
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">10
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">11
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">12
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">13
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">14
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">15
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">16
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">17
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">18
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">19
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">20
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">21
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">22
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">23
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">24
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">25
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">26
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">27
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">28
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">29
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">30
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">31
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">32
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">33
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">34
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">35
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">36
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">37
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">38
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">39
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" width="30px">40
                                    </td>
                                    <td>
                                        <input name="BoxNo" type="text" class="dfinput" />
                                    </td>
                                    <td>
                                        <select name="CardNo" onchange="selCardNoInfo(this)">
                                            <option value="0"></option>
                                            <%foreach (var cardNo in CardNOList)
                                                {%>
                                            <option value="<%=cardNo.Key %>">
                                                <%=cardNo.Value%></option>
                                            <% }%>
                                        </select>
                                    </td>
                                    <td>
                                        <input name="StartNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="EndNo" type="text" class="dfinput" onkeydown="onlyNum();" maxlength="8" />
                                    </td>
                                    <td>
                                        <input name="DueNumbers" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="ActualNumber" type="text" class="dfinput" value="0" onkeydown="onlyNum();"
                                            maxlength="9" />
                                    </td>
                                    <td>
                                        <input name="MissingCardNo" type="text" class="dfinput" />
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <table class="tablesum">
                        <tr>
                            <th width="40px">&nbsp;
                            </th>
                            <th style="width: 150px; text-align: center;">合计
                            </th>
                            <th style="width: 150px">&nbsp;
                            </th>
                            <th style="width: 150px">&nbsp;
                            </th>
                            <th style="width: 150px">&nbsp;
                            </th>
                            <th style="width: 150px; text-align: right;" id="DueSum">0
                            </th>
                            <th style="width: 150px; text-align: right;" id="ActualSum">0
                            </th>
                            <th>&nbsp;
                            </th>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="4" align="center" style="height: 55px;">
                    <asp:Button ID="btn_Submit" CssClass="btn" runat="server" Text="保存并提交" OnClientClick="return valReq(1);"
                        OnClick="btn_Submit_Click" />
                    <asp:Button ID="btn_Add" CssClass="btn" runat="server" Text="保存" OnClientClick="return valReq(0);"
                        OnClick="btn_Add_Click" />
                    <input type="button" class="btn" value="返回" onclick="javascript: history.go(-1);" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
